package com.lifeibiao.作业0214;

public class Company {
    private int caculateMouth;//打印的工资月份
    private ColaEmployee colaEmployee;

    /**
     *
     * 打印员工工资
     */
    public void printEmployeeSalary(){
        System.out.println(caculateMouth+"月份工资  姓名："
        +colaEmployee.getEmName()+"  工资金额："+colaEmployee.getSalary(caculateMouth));
    }

    public Company(int caculateMouth, ColaEmployee colaEmployee) {
        this.caculateMouth = caculateMouth;
        this.colaEmployee = colaEmployee;
    }

    public Company() {
    }

    public ColaEmployee getColaEmployee() {
        return colaEmployee;
    }

    public void setColaEmployee(ColaEmployee colaEmployee) {
        this.colaEmployee = colaEmployee;
    }

    public int getCaculateMouth() {
        return caculateMouth;
    }

    public void setCaculateMouth(int caculateMouth) {
        this.caculateMouth = caculateMouth;
    }
}
